
local bindings = bindings

function GetBindingKey(action)
	return bindings.GetKey(action)
end

function GetBindingAction(key)
	return bindings.GetAction(key)
end

function SetBinding(key, action)
	bindings.Set(key, action)
end

function GetCurrentBindingSet()
	bindings.GetSet()
end

function SaveBindings(which)
	bindings.Save(which)
end

function LoadBindings(which)
	bindings.Load(which)
end

function GetBinding(index)
	return bindings.Get(index)
end

function GetNumBindings()
	return bindings.Count()
end

function RunBinding(command, state)
	return bindings.Run(command, state and "up" or "down")
end
